{include file="public/layout" /}
<body class="bodystyle" style="overflow-y: scroll;min-width:auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page min-hg-c-10" style="min-width: auto;box-shadow:none;">
    <form class="form-horizontal" id="post_form">
        <input type="hidden" name="id" value="{$info.id}">
        <div class="ncap-form-default">
            <dl class="row none">
                <dt class="tit"><em>*</em>链接类型</dt>
                <dd class="opt">
                    <div class="onoff">
                        <label for="typeid1" class="cb-enable {if condition='$info.typeid == 1'}selected{/if}">文字</label>
                        <label for="typeid2" class="cb-disable {if condition='$info.typeid == 2'}selected{/if}" >图片</label>
                        <input id="typeid1" name="typeid" value="1" {if condition='$info.typeid == 1'}checked="checked"{/if} type="radio">
                        <input id="typeid2" name="typeid" value="2" {if condition='$info.typeid == 2'}checked="checked"{/if} type="radio">
                    </div>
                    <p class="notic"></p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit"><label for="url"><em>*</em>网址URL</label></dt>
                <dd class="opt"><input type="text" name="url" value="{$info.url|default=''}" id="url" class="input-txt" placeholder="http://"></dd>
            </dl>

            <dl class="row">
                <dt class="tit"><label for="title"><em>*</em>网站名称</label></dt>
                <dd class="opt"><input type="text" name="title" value="{$info.title|default=''}" id="title" class="input-txt"></dd>
            </dl>

            <dl class="row typeid2">
                <dt class="tit"><label for="logo"><em>*</em>上传Logo</label></dt>
                <dd class="opt">
                    <div class="input-file-show div_logo_local" {neq name="$info.is_remote" value="0"}style="display: none;"{/neq}>
                        <span class="show">
                            <a id="img_a" target="_blank" class="nyroModal" rel="gal" href="{$info.logo_local|default='javascript:void(0);'}">
                                <i id="img_i" class="fa fa-picture-o" {notempty name="$info.logo_local"}onmouseover="layer_tips=layer.tips('<img src={$info.logo_local|default=''} class=\'layer_tips_img\'>',this,{tips: [1, '#fff']});"{/notempty} onmouseout="layer.close(layer_tips);"></i>
                            </a>
                        </span>
                        <span class="type-file-box">
                            <input type="text" id="logo_local" name="logo_local" value="{$info.logo_local|default=''}" class="type-file-text" autocomplete="off">
                            <input type="button" name="button" id="button1" value="选择上传..." class="type-file-button">
                            <input class="type-file-file" onClick="GetUploadify(1, '', 'allimg', 'img_call_back')" size="30" hidefocus="true" nc_type="change_site_logo" title="点击前方预览图可查看大图，点击按钮选择文件并提交表单后上传生效">
                        </span>
                    </div>
                    <input type="text" id="logo_remote" name="logo_remote" value="{$info.logo_remote|default=''}" placeholder="http://" class="input-txt" {neq name="$info.is_remote" value="1"}style="display: none;"{/neq}>
                    &nbsp;
                    <label><input type="checkbox" name="is_remote" id="is_remote" value="1" {eq name="$info.is_remote" value="1"}checked="checked"{/eq} onClick="clickRemote(this, 'logo');">远程图片</label>
                    <p class="notic">建议尺寸 88 * 31 (像素) 的gif或jpg文件</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit"><label for="sort_order">排序</label></dt>
                <dd class="opt">
                    <input type="text" name="sort_order" value="{$info.sort_order|default='100'}" id="sort_order" class="input-txt">
                    <p class="notic">越小越靠前</p>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit"><label for="intro">网站备注</label></dt>
                <dd class="opt">
                    <textarea rows="5" cols="80" id="intro" name="intro" style="height:80px;" placeholder="备注一些站长联系方式、信息等内容">{$info.intro|default=''}</textarea>
                </dd>
            </dl>

            <dl class="row">
                <dt class="tit"><label>链接属性</label></dt>
                <dd class="opt">
                    <label><input type="checkbox" name="target" value="1" {if condition="$info.target eq 1"}checked="checked"{/if}>新窗口打开</label>&nbsp;&nbsp;
                    <label><input type="checkbox" name="nofollow" value="1" {if condition="$info.nofollow eq 1"}checked="checked"{/if}>nofollow</label>&nbsp;&nbsp;
                </dd>
            </dl>

            <div class="bot"><a href="JavaScript:void(0);" onclick="submitForm('#post_form');" class="ncap-btn-big ncap-btn-green">保存</a></div>
        </div>
    </form>
</div>

<script type="text/javascript">
    var submitFormUrl = "{:url('Pc/links_edit', ['_ajax'=>1])}";
</script>
<script type="text/javascript" src="__SKIN__/js/admin_pc_links.js?v={$version}"></script>
{include file="public/footer" /}